package com.trsj.lnsj.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.trsj.lnsj.common.DataResponse;
import com.trsj.lnsj.entity.UserDTO;

public interface IUserService {

    public DataResponse saveUserInfo(UserDTO user);

    public List<UserDTO> selectUserInfo(UserDTO user);

    public DataResponse login(UserDTO user);

    public DataResponse sendMsgCode(String mobilephone, String type, HttpSession session);

    public DataResponse alipay(float payAmount, String orderNo, HttpServletRequest request);

    public DataResponse selectUserByHappyNo(String happyNo);

    public DataResponse selectUserByMobilephone(String mobilephone);

    public DataResponse appAliPayNotify(HttpServletRequest request);

    public DataResponse wechatPayOrder(float payAmount, HttpServletRequest request);

    public DataResponse updateUserPwd(String mobilephone, String oldPwd, String newPwd);

    /**
     * 保存用户参与活动信息
     * @param happyNo
     * @param actid
     * @return
     */
    public DataResponse saveUserActivity(String happyNo, long actid);

    public UserDTO selectByUserId(Long userId) ;
    public UserDTO save(UserDTO user) ;
    /**
     * 用户修改昵称
     * @param userId
     * @param nickName
     * @return
     */
    public DataResponse updateUserNickName(long userId, String nickname);

    public DataResponse updateUserSignature(long userId, String signature);

    public DataResponse queryUserFriendsInfo(String happyNo);
}
